Einhugur macOS Bridge plugin.

EinhugurVisionBridge.VNInstanceMaskObservation Class

An observation that contains an instance mask that labels instances in the mask.

EinhugurVisionBridge.VNObservation
   VNInstanceMaskObservation

class EinhugurVisionBridge.VNInstanceMaskObservation

Constructors

VNInstanceMaskObservation (private) Private constructor.

Properties

ClassName (Inherited) (desktop - console) Returns the name of the Cocoa class under the hood as String.
Confidence (Inherited) Returns the level of confidence in the observation’s accuracy.
Handle (Inherited) Returns Integer handle to the native NSObject structure.
InstanceCountReturns number of instances.
InstanceMaskAsCGImageThe resulting mask that represents all instances.
UUID (Inherited) Returns a unique identifier assigned to the Vision observation.

Methods

shared CastDoes deep cast on incoming NSObject to VNInstanceMaskObservation.
shared FromIntegerPtrConstructs VNInstanceMaskObservation object from Integer handle coming from declares or 3rd party plugin.
GenerateMaskedImageOfInstancesAsBitmapEXPERIMENTAL Creates a high-resolution image where everything becomes transparent black, except for the instances you specify. This version returns the image as RawBitmap.
GenerateMaskedImageOfInstancesAsCGImageCreates a high-resolution image where everything becomes transparent black, except for the instances you specify. This version returns the image as CGImage.
GenerateScaledMaskForImageForInstancesAsBitmapEXPERIMENTAL Creates a high-resolution mask where everything becomes transparent black, except for the instances you specify. This version returns the image as RawBitmap.
GenerateScaledMaskForImageForInstancesAsCGImageCreates a high-resolution mask where everything becomes transparent black, except for the instances you specify. This version returns the image as CGImage.
shared IsVNInstanceMaskObservationReturns true if the NSObject under the hood is VNInstanceMaskObservation or derived from VNInstanceMaskObservation.
Release (Inherited) Releases the NSObject.
Retain (Inherited) Retains the NSObject

Constants

Version = 5.0 (Inherited)

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • iOS
  • Unsupported Platforms:

  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit